using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
    /// <summary>
    /// 生产计划附件表
    /// </summary>
    [SugarTable("Lwp_ProductionPlanAttachment")]
    public class ProductionPlanAttachment
    {
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        
        /// <summary>
        /// 关联的生产计划ID
        /// </summary>
        public int PlanId { get; set; }
        
        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; } = string.Empty;
        
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FilePath { get; set; } = string.Empty;
        
        /// <summary>
        /// 文件大小(字节)
        /// </summary>
        public long FileSize { get; set; }
        
        /// <summary>
        /// 文件类型
        /// </summary>
        public string FileType { get; set; } = string.Empty;
        
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadTime { get; set; } = DateTime.Now;
    }
} 